package com.feeyo.prophet.pojo.action.functioncall;

import com.alibaba.fastjson.JSON;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * type : object
 * required : ["startDate","endDate"]
 * properties : {"startDate":{"type":"string","description":"开始日期 格式:yyyy-MM-dd eg:'2019-01-01'"},"endDate":{"type":"string","description":"结束日期 格式:yyyy-MM-dd eg:'2019-12-31'"},"airline":{"type":"array","items":{"type":"string"},"description":"航空公司IATA三字码数组 eg:['9C']","defaults":[]}}
 */

@Data
@NoArgsConstructor
@AllArgsConstructor
public class FunctionCall {

    /**
     * 参数类型
     */
    private String type;

    /**
     * 参数中必要的字段
     */
    private List<String> required;

    /**
     * 参数中可选字段
     */
    private Properties properties;

    @Override
    public String toString() {
        return JSON.toJSONString(this);
    }
}
